﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="EnterpriseList.aspx.cs" Inherits="Runda.EShop.SaaS.CustomerManage.EnterpriseList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
    <uc:LeftMenu runat="server" ID="ucLeftMenu"  TopMenuCode="Func1000"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
    <div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />企业查询</span>
    </div>
     <table cellspacing="0" cellpadding="0" class="i_center_table0zs clear" style="width:100%;height:30px;">
        <tr>
        <td style=" width:10%">企业名称</td>
            <td>
                <asp:TextBox ID="txtEntName" runat="server"></asp:TextBox></td>
        <td>企业编号</td>
        <td><asp:TextBox ID="txtEntCode" runat="server"></asp:TextBox></td>
        <td>
        <div class="banner l">
            <asp:LinkButton ID="lnkbtnQuery" runat="server" onclick="lnkbtnQuery_Click">查询</asp:LinkButton>
            </div>
        </td>
        </tr>
    </table>
      <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
            <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />企业列表</span>
        </div>
        <div class="clear"></div>
        <asp:GridView ID="gvCustomerList" runat="server" 
        AutoGenerateColumns="False" onrowdatabound="gvCustomerList_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="企业编号">
                <ItemTemplate>
                <asp:HyperLink ID="lnkView" runat="server" NavigateUrl='<%# "EnterpriseView.aspx?EntID="+Eval("EntID") %>' Target="_self"><%#Eval("EntCode") %></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="EntName" HeaderText="企业名称" />
            <asp:TemplateField HeaderText="营业执照期限">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" 
                        Text='<%# Bind("BusinessLicenseDeadline", "{0:yyyy-MM-dd}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="器械证期限">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" 
                        Text='<%# Bind("ApparatusLicenseDeadline", "{0:yyyy-MM-dd}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="药品证期限">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" 
                        Text='<%# Bind("DrugLicenseDeadline", "{0:yyyy-MM-dd}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="Expired" HeaderText="是否过期"/>
          <asp:TemplateField HeaderText="操作">
          <ItemTemplate>      
                <asp:Button ID="btnEdit" runat="server" Text="修改信息" OnClientClick='<%# "return OnOpenWinCustom(\"EnterpriseEdit.aspx?EntID="+Eval("EntID")+"\",\"修改信息\",700,450)" %>'/>
                <asp:HyperLink ID="lnkEdit" runat="server" NavigateUrl='<%# "EnterpriseEdit.aspx?EntID="+Eval("EntID") %>' Visible="false">修改信息</asp:HyperLink>
                <asp:HyperLink ID="lnkSet" runat="server" NavigateUrl='<%# "CustomerList.aspx?EntID="+Eval("EntID") %>' Target="_self">企业用户</asp:HyperLink>
          </ItemTemplate>
          </asp:TemplateField>
        </Columns>            
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
</asp:Content>
